package Java语言.并行;

public class HelloWorld {
    public static String reverse(String originStr) {
        if(originStr == null || originStr.length() <= 1)
            return originStr;
        return reverse(originStr.substring(1)) + originStr.charAt(0);
    }

    public static void main(String[] args) {
        reverse("yes");
        Runtime.getRuntime().runFinalization();
    }
}
